package org.jeecg.modules.bean.entity.printapply;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 病历复印申请表
 * @Author: jeecg-boot
 * @Date: 2023-11-29
 * @Version: V1.0
 */
@Data
@TableName("tb_print_apply")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "tb_print_apply对象", description = "病历复印申请表")
public class TbPrintApply implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    private java.lang.String appliedBy;
    /**
     * 审核日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核日期")
    private java.util.Date appliedTime;
    /**
     * 患者姓名
     */
    @Excel(name = "患者姓名", width = 15)
    @ApiModelProperty(value = "患者姓名")
    private java.lang.String patient;
    /**
     * 年龄
     */
    @Excel(name = "年龄", width = 15)
    @ApiModelProperty(value = "年龄")
    private java.lang.Integer age;
    /**
     * 性别
     */
    @Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private java.lang.String sex;
    /**
     * 身份证
     */
    @Excel(name = "身份证", width = 15)
    @ApiModelProperty(value = "身份证")
    private java.lang.String idNum;
    /**
     * 门诊/住院号
     */
    @Excel(name = "门诊/住院号", width = 15)
    @ApiModelProperty(value = "门诊/住院号")
    private java.lang.String jzNum;
    /**
     * 复印内容
     */
    @Excel(name = "复印内容", width = 15)
    @ApiModelProperty(value = "复印内容")
    private java.lang.String printContent;
    /**
     * 病案用途
     */
    @Excel(name = "病案用途", width = 15)
    @ApiModelProperty(value = "病案用途")
    private java.lang.String purpose;
    /**
     * 委托关系
     */
    @Excel(name = "委托关系", width = 15)
    @ApiModelProperty(value = "委托关系")
    private java.lang.String relation;
    /**
     * 复印类型
     */
    @Excel(name = "复印类型", width = 15)
    @ApiModelProperty(value = "复印类型")
    private java.lang.String printType;
    /**
     * 委托原因
     */
    @Excel(name = "委托原因", width = 15)
    @ApiModelProperty(value = "委托原因")
    private java.lang.String printReason;
    /**
     * 复印份数
     */
    @Excel(name = "复印份数", width = 15)
    @ApiModelProperty(value = "复印份数")
    private java.lang.Integer printNum;
    /**
     * 复印张数
     */
    @Excel(name = "复印张数", width = 15)
    @ApiModelProperty(value = "复印张数")
    private java.lang.Integer printTotalNum;
    /**
     * 金额
     */
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal printMoney;
    /**
     * 患者就诊类型：1：门诊患者  2：住院患者
     */
    @Excel(name = "患者就诊类型", width = 15)
    @ApiModelProperty(value = "患者就诊类型")
    private Integer patientType;
    /**
     * 附件图片
     */
    @Excel(name = "附件图片", width = 15)
    private transient java.lang.String printImageString;

    private byte[] printImage;

    /**
     * 复印状态
     */
    @Excel(name = "复印状态", width = 15)
    @ApiModelProperty(value = "复印状态")
    private java.lang.Integer printStatus;
    /**
     * 申请状态
     */
    @Excel(name = "申请状态", width = 15)
    @ApiModelProperty(value = "申请状态")
    private java.lang.Integer status;
    /**
     * 复印次数
     */
    @Excel(name = "复印次数", width = 15)
    @ApiModelProperty(value = "复印次数")
    private java.lang.Integer printCount;

    @TableField(exist = false)
    private String paymentState;
}
